//
//  LFLocationBtn.m
//  LoveFreshBee
//
//  Created by Ruihaha on 16/10/15.
//  Copyright © 2016年 王忠迪. All rights reserved.
//

#import "LFLocationBtn.h"

#define btnW self.bounds.size.width
#define btnH self.bounds.size.height

@implementation LFLocationBtn

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.contentMode = UIViewContentModeScaleAspectFill;
    }
    return self;
}

-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    
    return CGRectMake(btnW-10,5, 10, 10);
}

-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    return CGRectMake(0, 0, btnW-10, btnH);
}

@end


